﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class activity : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Request.QueryString["id"] == null)
        {
            Response.Redirect("~/");
        }
        try
        {
            int id = int.Parse(this.Request.QueryString["id"]);
            using (ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter da = new ds_名师讲堂TableAdapters.tb_活动掠影TableAdapter())
            {
                this.rpt_activity.DataSource = da.GetDataBy活动掠影ID(id);
            }
            this.rpt_activity.DataBind();
        }
        catch (Exception)
        {
            Response.Redirect("~/");
        } 
    }
}